package com.mostromas.ess.entities;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 商品分类
 */
@ApiModel(value = "Category对象",description = "类别信息")
@TableName("mr_product_category") // Category实体类对应表mr_category
@Data
public class ProductCategory implements Serializable {

    private static final long serialVersionUID = 8736793823321558596L;
    /**
     * 主键，分布式id
     */
    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type= IdType.ASSIGN_ID)
    private String id;

    /**
     * 父类主键ID，初始值为0
     */
    @ApiModelProperty(value = "父类主键ID")
    private String parentId = "0";

    /**
     * 分类名称
     */
    @ApiModelProperty(value = "分类名称")
    private String name;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;

    /**
     * 状态(1:正常，0:禁用)
     */
    @ApiModelProperty(value = "状态(1:正常，0:禁用)")
    private Integer status;

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    private Integer sort;

    /**
     * 创建时间
     */
    private Date createDate;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    private Date updateDate;
}
